package com.tudouji.project.flow.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.tudouji.common.utils.StringUtils;

import java.io.Serializable;
import java.lang.reflect.Field;

public abstract class BasePojo implements Serializable {
	
	private Integer count;
	
	private String condition;
	
	private String guid;
	
	private Integer sendType;//流程发起类型
	
	private Integer approvalFlag;
	
	private Integer status;
	
	private String operatorid;

    private String code;
	/** 开始时间 */
	@JsonIgnore
	private String beginTime;

	/** 结束时间 */
	@JsonIgnore
	private String endTime;

	public String getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(String beginTime) {
		this.beginTime = beginTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

	public abstract String getValueByParam(String param);
	
	public String getGuid() {
		return guid;
	}

	public void setGuid(String guid) {
		this.guid = guid;
	}

	public String getCondition() {
		return condition;
	}

	public void setCondition(String condition) {
		this.condition = condition;
	}
	
	public String getClassName() {
		String name = this.getClass().getSimpleName();
		if (StringUtils.equalsIgnoreCase(name, "SellformOld")){
			name = "Sellform";
		}

		return name;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public Integer getSendType() {
		return sendType;
	}

	public void setSendType(Integer sendType) {
		this.sendType = sendType;
	}

	public Integer getApprovalFlag() {
		return approvalFlag;
	}

	public void setApprovalFlag(Integer approvalFlag) {
		this.approvalFlag = approvalFlag;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getOperatorid() {
		return operatorid;
	}

	public void setOperatorid(String operatorid) {
		this.operatorid = operatorid;
	}
	
}
